package com.example.design.c.temp;

/**
 * 建设银行业务子类
 */
public class CCBBankBusiness extends AbstractBankBusiness {

    public CCBBankBusiness() {
        System.out.println("建设银行业务实现类");
    }

    /**
     * 实际业务
     */
    @Override
    public Integer personalBusiness() {
        int cash = 10000;
        System.out.println("我要存钱, 我存" + cash);
        return cash;
    }

    @Override
    protected void gift() {
        System.out.println("赠送金龙鱼花生油一桶");
    }
}
